angular.module('faApp')
  .service('activityService', [ 'ajaxService',function (ajaxService) {

    this.activityAdd = function (activity) {
      return ajaxService.post(ajaxService.getApiUri("ACTIVITY_ADD"), activity || {});
    };

    this.activityEdit = function (activity) {
      return ajaxService.post(ajaxService.getApiUri("ACTIVITY_EDIT"), activity || {});
    };

    this.activityList = function (activity) {
      return ajaxService.post(ajaxService.getApiUri("ACTIVITY_LIST"), activity || {});
    };

    this.activityById = function (activity) {
      return ajaxService.post(ajaxService.getApiUri("ACTIVITY_BY_ID"), activity || {});
    };

    this.activityNameList = function (activity) {
      return ajaxService.post(ajaxService.getApiUri("ACTIVITY_NAME_LIST"), activity || {});
    };

    
}]);